﻿<?php echo $this->Html->css('search'); ?>
<?php echo $this->Html->script('search_filter'); ?>
<div id="main" class="remove_top_border">
	<div class="post-content">
		<div class="content_inner">
			<div class="first-row">
				<?php if (strlen($keyword) > 10) $keyword = substr($keyword, 0, 10).'...'; ?>
				<span class="title">SEARCH RESULT FOR "<span id="search_keyword"><?=$keyword?></span>"</span>
				<div class="search-filter">
					Sort by
					<span class="<?php if($search_order=='newest'){echo 'selected';} ?>"><a href="javascript:void(0)" class="sort_button" id="newest">Newest</a></span>
					<span class="<?php if($search_order=='rating'){echo 'selected';} ?>"><a href="javascript:void(0)" class="sort_button" id="rating">Rating</a></span>
					<span class="<?php if($search_order=='popular'){echo 'selected';} ?>"><a href="javascript:void(0)" class="sort_button" id="popular">Most Popular</a></span>
				</div>
			</div>

			<div class="products" id="product_list" style="height:500px">
			</div>
			<div id="search_pagination" class="pagination search-filter" style="width:50%">
			</div>
		</div>
	</div>
</div>
